<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>高亮显示</title>
    <script src="js/jquery-3.3.1.min.js"></script>
    <style>
        body {
            background-color: black;
        }
        
        div {
            width: 640px;
            height: 400px;
            border: 2px solid gray;
            margin: 0 auto;
        }
        
        ul {
            padding: 0px;
            margin: 0px;
        }
        
        li {
            height: 186px;
            float: left;
            list-style: none;
            margin-top: 10px;
            margin-left: 10px;
        }
    </style>
</head>

<body>
    <div>
        <ul>
            <li><img src="images/01.jpg" alt=""></li>
            <li><img src="images/02.jpg" alt=""></li>
            <li><img src="images/03.jpg" alt=""></li>
            <li><img src="images/04.jpg" alt=""></li>
            <li><img src="images/05.jpg" alt=""></li>
            <li><img src="images/06.jpg" alt=""></li>
        </ul>
    </div>

    <script>
        $(function() {
            $('li').hover(function() {
                $(this).siblings().stop().fadeTo(400, 0.5)
            }, function() {
                $(this).siblings().stop().fadeTo(400, 1)
            })
        })
    </script>
</body>

</html>